<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0,minimal-ui" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="apple-mobile-web-app-title" content="仙王的日常">
    <meta name="format-detection" content="telphone=no, email=no" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="true">
    <meta name="MobileOptimized" content="320">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="screen-orientation" content="portrait">
    <meta name="browsermode" content="application">
    <meta name="full-screen" content="yes">
    <meta name="x5-orientation" content="portrait">
    <meta name="x5-fullscreen" content="true">
    <meta name="x5-page-mode" content="app">
    <title>首页-仙王的日常</title>
    <link rel="stylesheet" type="text/css" href="../css/public.css" />
    <link rel="stylesheet" type="text/css" href="../css/invitefriend.css" />
</head>

<body>
    <div class="zone">
        <div class="main">
            <img src="http://img.qunx.top/xianwang/public/invite.jpg" alt="">
            <div class="pannel">
                <div class="qr-bg">
                    <div class="qr-code" id="qr-code"></div>
                    <p class="sao">扫码下载撸米App</p>
                    <p class="yaoqing">邀请码：<span id="invitecode"></span></p>
                </div>
            </div>

        </div>
    </div>

    <script src="../js/public.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/nav-bar.js" type="text/javascript" charset="utf-8"></script>
    <script src="../lib/qr-code.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/swiper-bundle.min.js" type="text/javascript" charset="utf-8"></script>
    <script>
        let ele = {};
        ele.qrCode = $('#qr-code');
        ele.invitecode = $('#invitecode');
        ele.inviteCode1 = $('#invite-code1');
        let inviteCode = getCookie('invite_code');
        ele.invitecode.innerHTML = inviteCode
        // console.log(SHORT_URL + inviteCode);
        let qr = new QRCode(ele.qrCode, {
            text: DOMAIN + '/' + inviteCode,
            width: 85,
            height: 85,
            colorDark: "#000000",
            colorLight: "#ffffff",
            correctLevel: QRCode.CorrectLevel.M,
        });
    </script>
</body>

</html>